
<meta charset="utf-8">


<?php


include_once($_SERVER['DOCUMENT_ROOT'].'Exiastore/Model/BDD.php');
$bdd = new BDD();



    
$req = $bdd->getBDD()->prepare('UPDATE article SET stock = :stock WHERE article=:article');
$req->execute(array(
'stock' => $nom= $_POST['stock'],
'article' => $article = $_POST['article'],
));   
        
echo "<script> alert('Modifications stock enregistrées')</script>";
header("Refresh: 0; URL=../View/stock.php");

?>